package com.prs.crm.dao.stock;
import com.prs.crm.dao.BaseDao;
import com.prs.crm.domain.stock.Purchase;
import com.prs.crm.domain.stock.PurchaseDetail;

public interface PurchaseDao extends BaseDao<Purchase>{

	
	void saveDetail(PurchaseDetail detail);
	
	PurchaseDetail getDetail(java.io.Serializable id);
	
	void saveOrUpdate(PurchaseDetail purchaseDetail);
	
	/**
	 * 状态
	 * @param id
	 * @return
	 */
	Purchase getPurchase(java.io.Serializable id);
	/**
	 * update
	 */
	void saveOrUpdate(Purchase purchase);
	
}
